import { combineReducers, createStore } from "redux"
import { DetailOpen } from "./reducers/DetailOpen"
import { persistReducer, persistStore } from "redux-persist";
import storage from 'redux-persist/lib/storage'
const reducer = combineReducers({
  DetailOpen,
})
const persistConfig = {
  key: 'root',
  storage,
  // blacklist: ['loadReducer']
}
const persistedReducer = persistReducer(persistConfig, reducer)
let store = createStore(persistedReducer)
let persistor = persistStore(store)
export { store, persistor }